import {getAccessToken} from '@/utils/auth'

// 表单属性【右面板】
export const formConf = {
  formRef: 'elForm',
  formModel: 'formData',
  size: 'medium',
  labelPosition: 'right',
  labelWidth: 100,
  formRules: 'rules',
  gutter: 15,
  disabled: false,
  span: 24,
  formBtns: true,
  btnConfig: [{ label: '确定', text: '提交', click: 'submit', checked: true, type: 'default' }, { label: '重置', text: '重置', click: 'reset', checked: true, type: 'default' }, { label: '保存', text: '保存', click: 'save', checked: true, type: 'default' }, { label: '取消', text: '取消', click: 'cancel', checked: true, type: 'default' }],
  btnPosition: 'center',
  ruleConfig: [],
  formType:'page',  //表单类型
  dialogWidth: 1000, //弹窗宽度
  dialogTop:0,  //距顶高度
  labelDescriptionPosition:'button' //描述信息位置
}

// 输入型组件 【左面板】
export const inputComponents = [
  {
    // 组件的自定义配置
    __config__: {
      label: '单行文本',
      labelWidth: null,
      showLabel: true,
      changeTag: true,
      tag: 'el-input',
      tagIcon: 'input',
      defaultValue: undefined,
      required: true,
      layout: 'colFormItem',
      span: 24,
      document: 'https://element.eleme.cn/#/zh-CN/component/input',
      // 正则校验规则
      regList: [],
      descriptionMessage:''
    },
    // 组件的插槽属性
    __slot__: {
      prepend: '',
      append: ''
    },
    // 其余的为可直接写在组件标签上的属性
    placeholder: '请输入',
    style: { width: '100%' },
    clearable: true,
    'prefix-icon': '',
    'suffix-icon': '',
    maxlength: null,
    'show-word-limit': false,
    readonly: false,
    disabled: false
  },
  {
    __config__: {
      label: '多行文本',
      labelWidth: null,
      showLabel: true,
      tag: 'el-input',
      tagIcon: 'textarea',
      defaultValue: undefined,
      required: true,
      layout: 'colFormItem',
      span: 24,
      regList: [],
      changeTag: true,
      document: 'https://element.eleme.cn/#/zh-CN/component/input',
      descriptionMessage:''
    },
    type: 'textarea',
    placeholder: '请输入',
    autosize: {
      minRows: 4,
      maxRows: 4
    },
    style: { width: '100%' },
    maxlength: null,
    'show-word-limit': false,
    readonly: false,
    disabled: false
  },
  {
    __config__: {
      label: '密码',
      showLabel: true,
      labelWidth: null,
      changeTag: true,
      tag: 'el-input',
      tagIcon: 'password',
      defaultValue: undefined,
      layout: 'colFormItem',
      span: 24,
      required: true,
      regList: [],
      document: 'https://element.eleme.cn/#/zh-CN/component/input',
      descriptionMessage:''
    },
    __slot__: {
      prepend: '',
      append: ''
    },
    placeholder: '请输入',
    'show-password': true,
    style: { width: '100%' },
    clearable: true,
    'prefix-icon': '',
    'suffix-icon': '',
    maxlength: null,
    'show-word-limit': false,
    readonly: false,
    disabled: false
  },
  {
    __config__: {
      label: '计数器',
      showLabel: true,
      changeTag: true,
      labelWidth: null,
      tag: 'el-input-number',
      tagIcon: 'numbers',
      defaultValue: undefined,
      span: 24,
      layout: 'colFormItem',
      required: true,
      regList: [],
      document: 'https://element.eleme.cn/#/zh-CN/component/input-number',
      descriptionMessage:''
    },
    placeholder: '',
    min: undefined,
    max: undefined,
    step: 1,
    style: { width: '100%' },
    'step-strictly': false,
    precision: undefined,
    'controls-position': '',
    disabled: false
  },
  {
    __config__: {
      label: '富文本',
      showLabel: true,
      changeTag: true,
      labelWidth: null,
      tag: 'tinymce',
      tagIcon: 'rich-text',
      defaultValue: null,
      span: 24,
      layout: 'colFormItem',
      required: true,
      regList: [],
      document: 'http://tinymce.ax-z.cn',
      descriptionMessage:''
    },
    placeholder: '请输入',
    height: 300, // 编辑器高度
    branding: false, // 隐藏右下角品牌烙印
    style: { width: '100%' },
    // maxlength: null,
    // 'show-word-limit': false,
    //是否禁用
    disabled: false,
    //是否只读
    readonly: false,

  },
  {
    // 组件的自定义配置
    __config__: {
      label: '编码',
      labelWidth: null,
      showLabel: true,
      changeTag: true,
      tag: 'el-input',
      tagIcon: 'coding',
      defaultValue: undefined,
      required: true,
      layout: 'colFormItem',
      span: 24,
      name: 'coding',
      codingRules: true,
      document: 'https://element.eleme.cn/#/zh-CN/component/input',
      // 正则校验规则
      regList: [],
      descriptionMessage:'',
      bianma:true
    },
    // 组件的插槽属性
    __slot__: {
      prepend: undefined,
      append: undefined
    },
    // 其余的为可直接写在组件标签上的属性
    placeholder: '请输入',
    rulesSelectValue: '',
    style: { width: '100%' },
    clearable: true,
    'prefix-icon': undefined,
    'suffix-icon': undefined,
    maxlength: undefined,
    'show-word-limit': undefined,
    readonly: false,
    disabled: false
  },
  {
    __config__: {
      label: '手写签名',
      showLabel: true,
      changeTag: true,
      labelWidth: null,
      tag: 'signature',
      tagIcon: 'email',
      defaultValue: null,
      span: 24,
      layout: 'colFormItem',
      required: true,
      regList: [],
      document: 'http://tinymce.ax-z.cn',
      descriptionMessage:''
    },
    placeholder: '请输入',
    style: { width: '100%' },
    disabled:false
  }
]

// 选择型组件 【左面板】
export const selectComponents = [
  {
    __config__: {
      label: '下拉选择',
      showLabel: true,
      labelWidth: null,
      tag: 'my-select',
      tagIcon: 'select',
      layout: 'colFormItem',
      span: 24,
      required: true,
      regList: [],
      changeTag: true,
      document: 'https://element.eleme.cn/#/zh-CN/component/select',
      descriptionMessage:''
    },
    options: [{
      label: '选项一',
      value: 1
    }, {
      label: '选项二',
      value: 2
    }],
    optionMax: 2,
    dataType: 'static',
    tableName: '',
    fieldName: '',
    dictName: '',
    placeholder: '请选择',
    style: { width: '100%' },
    clearable: true,
    disabled: false,
    filterable: false,
    multiple: false
  },
  {
    __config__: {
      label: '级联选择',
      url: 'https://www.fastmock.site/mock/f8d7a54fb1e60561e2f720d5a810009d/fg/cascaderList',
      method: 'get',
      dataPath: 'list',
      dataConsumer: 'options',
      showLabel: true,
      labelWidth: null,
      tag: 'my-cascader',
      tagIcon: 'cascader',
      layout: 'colFormItem',
      defaultValue: [],
      span: 24,
      required: true,
      regList: [],
      changeTag: true,
      document: 'https://element.eleme.cn/#/zh-CN/component/cascader',
      descriptionMessage:''
    },
    options: [{
      id: 1,
      value: 1,
      label: '选项1',
      children: [{
        id: 2,
        value: 2,
        label: '选项1-1'
      }]
    }],
    fields: [],
    formName: '',
    dataType: 'static',
    props: {
      props: {
        multiple: false,
        label: 'label',
        value: 'value',
        children: 'children'
      }
    },
    placeholder: '请选择',
    style: { width: '100%' },
    'show-all-levels': true,
    disabled: false,
    clearable: true,
    filterable: false,
    separator: '/'
  },
  // {
  //   __config__: {
  //     label: '级联选择',
  //     url: 'https://www.fastmock.site/mock/f8d7a54fb1e60561e2f720d5a810009d/fg/cascaderList',
  //     method: 'get',
  //     dataPath: 'list',
  //     dataConsumer: 'options',
  //     showLabel: true,
  //     labelWidth: null,
  //     tag: 'el-cascader',
  //     tagIcon: 'cascader',
  //     layout: 'colFormItem',
  //     defaultValue: [],
  //     span: 24,
  //     required: true,
  //     regList: [],
  //     dataType: 'static',
  //     changeTag: true,
  //     document: 'https://element.eleme.cn/#/zh-CN/component/cascader'
  //   },
  //   options: [{
  //     id: 1,
  //     value: 1,
  //     label: '选项1',
  //     children: [{
  //       id: 2,
  //       value: 2,
  //       label: '选项1-1'
  //     }]
  //   }],
  //   placeholder: '请选择',
  //   style: { width: '100%' },
  //   props: {
  //     props: {
  //       multiple: false,
  //       label: 'label',
  //       value: 'value',
  //       children: 'children'
  //     }
  //   },
  //   'show-all-levels': true,
  //   disabled: false,
  //   clearable: true,
  //   filterable: false,
  //   separator: '/'
  // },
  {
    __config__: {
      label: '单选框组',
      labelWidth: null,
      showLabel: true,
      tag: 'my-radio-group',
      tagIcon: 'radio',
      changeTag: true,
      defaultValue: undefined,
      layout: 'colFormItem',
      span: 24,
      regList: [],
      required: true,
      border: false,
      document: 'https://element.eleme.cn/#/zh-CN/component/radio',
      descriptionMessage:''
    },
    options: [{
      label: '选项一',
      value: 1
    }, {
      label: '选项二',
      value: 2
    }],
    optionMax: 2,
    optionType: 'default',
    dataType: 'static',
    tableName: '',
    fieldName: '',
    dictName: '',
    style: {},
    size: 'medium',
    disabled: false
  },
  {
    __config__: {
      label: '多选框组',
      tag: 'my-checkbox-group',
      tagIcon: 'checkbox',
      defaultValue: [],
      span: 24,
      showLabel: true,
      labelWidth: null,
      layout: 'colFormItem',
      required: true,
      regList: [],
      changeTag: true,
      border: false,
      document: 'https://element.eleme.cn/#/zh-CN/component/checkbox',
      descriptionMessage:''
    },
    options: [{
      label: '选项一',
      value: 1
    }, {
      label: '选项二',
      value: 2
    }],
    optionMax: 2,
    optionType: 'default',
    dataType: 'static',
    tableName: '',
    fieldName: '',
    dictName: '',
    style: {},
    size: 'medium',
    min: null,
    max: null,
    disabled: false
  },
  {
    __config__: {
      label: '开关',
      tag: 'el-switch',
      tagIcon: 'switch',
      defaultValue: false,
      span: 24,
      showLabel: true,
      labelWidth: null,
      layout: 'colFormItem',
      required: true,
      regList: [],
      changeTag: true,
      document: 'https://element.eleme.cn/#/zh-CN/component/switch',
      descriptionMessage:''
    },
    style: {},
    disabled: false,
    'active-text': '',
    'inactive-text': '',
    'active-color': null,
    'inactive-color': null,
    'active-value': true,
    'inactive-value': false
  },
  {
    __config__: {
      label: '滑块',
      tag: 'el-slider',
      tagIcon: 'slider',
      defaultValue: null,
      span: 24,
      showLabel: true,
      layout: 'colFormItem',
      labelWidth: null,
      required: true,
      regList: [],
      changeTag: true,
      document: 'https://element.eleme.cn/#/zh-CN/component/slider',
      descriptionMessage:''
    },
    disabled: false,
    min: 0,
    max: 100,
    step: 1,
    style: { width: '100%' },
    'show-stops': false,
    range: false
  },
  {
    __config__: {
      label: '时间选择',
      tag: 'el-time-picker',
      tagIcon: 'time',
      defaultValue: null,
      span: 24,
      showLabel: true,
      layout: 'colFormItem',
      labelWidth: null,
      required: true,
      regList: [],
      changeTag: true,
      document: 'https://element.eleme.cn/#/zh-CN/component/time-picker',
      descriptionMessage:''
    },
    placeholder: '请选择',
    style: { width: '100%' },
    disabled: false,
    clearable: true,
    'picker-options': {
      selectableRange: '00:00:00-23:59:59'
    },
    format: 'HH:mm:ss',
    'value-format': 'HH:mm:ss'
  },
  {
    __config__: {
      label: '时间范围',
      tag: 'el-time-picker',
      tagIcon: 'time-range',
      span: 24,
      showLabel: true,
      labelWidth: null,
      layout: 'colFormItem',
      defaultValue: null,
      required: true,
      regList: [],
      changeTag: true,
      document: 'https://element.eleme.cn/#/zh-CN/component/time-picker',
      descriptionMessage:''
    },
    style: { width: '100%' },
    disabled: false,
    clearable: true,
    'is-range': true,
    'range-separator': '至',
    'start-placeholder': '开始时间',
    'end-placeholder': '结束时间',
    format: 'HH:mm:ss',
    'value-format': 'HH:mm:ss'
  },
  {
    __config__: {
      label: '日期选择',
      tag: 'el-date-picker',
      tagIcon: 'date',
      defaultValue: null,
      showLabel: true,
      labelWidth: null,
      span: 24,
      layout: 'colFormItem',
      required: true,
      regList: [],
      changeTag: true,
      document: 'https://element.eleme.cn/#/zh-CN/component/date-picker',
      descriptionMessage:''
    },
    placeholder: '请选择',
    type: 'date',
    style: { width: '100%' },
    disabled: false,
    clearable: true,
    format: 'yyyy-MM-dd',
    'value-format': 'yyyy-MM-dd',
    readonly: false
  },
  {
    __config__: {
      label: '日期范围',
      tag: 'el-date-picker',
      tagIcon: 'date-range',
      defaultValue: null,
      span: 24,
      showLabel: true,
      labelWidth: null,
      required: true,
      layout: 'colFormItem',
      regList: [],
      changeTag: true,
      document: 'https://element.eleme.cn/#/zh-CN/component/date-picker',
      descriptionMessage:''
    },
    style: { width: '100%' },
    type: 'daterange',
    'range-separator': '至',
    'start-placeholder': '开始日期',
    'end-placeholder': '结束日期',
    disabled: false,
    clearable: true,
    format: 'yyyy-MM-dd',
    'value-format': 'yyyy-MM-dd',
    readonly: false
  },
  {
    __config__: {
      label: '评分',
      tag: 'el-rate',
      tagIcon: 'rate',
      defaultValue: 0,
      span: 24,
      showLabel: true,
      labelWidth: null,
      layout: 'colFormItem',
      required: true,
      regList: [],
      changeTag: true,
      document: 'https://element.eleme.cn/#/zh-CN/component/rate',
      descriptionMessage:''
    },
    style: {},
    max: 5,
    'allow-half': false,
    'show-text': false,
    'show-score': false,
    disabled: false
  },
  {
    __config__: {
      label: '颜色选择',
      tag: 'el-color-picker',
      tagIcon: 'color',
      span: 24,
      defaultValue: null,
      showLabel: true,
      labelWidth: null,
      layout: 'colFormItem',
      required: true,
      regList: [],
      changeTag: true,
      document: 'https://element.eleme.cn/#/zh-CN/component/color-picker',
      descriptionMessage:''
    },
    'show-alpha': false,
    'color-format': '',
    disabled: false,
    size: 'medium'
  },
  {
    __config__: {
      label: '上传',
      tag: 'el-upload',
      tagIcon: 'upload',
      layout: 'colFormItem',
      defaultValue: null,
      showLabel: true,
      labelWidth: null,
      required: true,
      span: 24,
      showTip: false,
      buttonText: '点击上传',
      regList: [],
      changeTag: true,
      fileSize: 2,
      sizeUnit: 'MB',
      document: 'https://element.eleme.cn/#/zh-CN/component/upload',
      descriptionMessage:''
    },
    __slot__: {
      'list-type': true
    },
    action: `${process.env.VUE_APP_BASE_API}/admin-api/form/project/fileUpload`,
    headers: { 'Authorization': "Bearer " + getAccessToken() },
    disabled: false,
    accept: '',
    name: 'file',
    'auto-upload': true,
    'list-type': 'text',
    multiple: false,
    "file-list": []
  },
  {
    // 组件的自定义配置
    __config__: {
      label: '地点',
      labelWidth: null,
      showLabel: true,
      changeTag: true,
      tag: 'getMapPoint',
      tagIcon: 'place',
      defaultValue: undefined,
      required: true,
      layout: 'colFormItem',
      span: 24,
      document: 'https://element.eleme.cn/#/zh-CN/component/input',
      // 正则校验规则
      regList: [],
      descriptionMessage:''
    },
    // 其余的为可直接写在组件标签上的属性
    placeholder: '请选择',
    style: { width: '100%' },
    clearable: true,
    maxlength: null,
    'show-word-limit': false,
    readonly: false,
    disabled: false
  },
  {
    __config__: {
      label: "行政区域",
      showLabel: true,
      labelWidth: null,
      tag: "my-region",
      tagIcon: "tree-table",
      layout: "colFormItem",
      defaultValue: [],
      span: 24,
      required: true,
      regList: [],
      changeTag: true,
      document: "https://element.eleme.cn/#/zh-CN/component/cascader",
      descriptionMessage:''
    },
    dataType: 'region',
    placeholder: "请选择",
    style: { width: "100%" },
    props: {
      props: {
        multiple: false,
        label: "label",
        value: "value",
        children: "children",
        checkStrictly: true,
      },
    },
    "show-all-levels": true,
    disabled: false,
    clearable: true,
    filterable: true,
    separator: "/",
  },
  {
    // 组件的自定义配置
    __config__: {
      label: '联想弹窗',
      labelWidth: null,
      labelPosition: 'top',
      showLabel: true,
      changeTag: true,
      tag: 'LenovoPopup',
      tagIcon: 'lenovoPopup',
      defaultValue: undefined,
      required: true,
      layout: 'colFormItem',
      span: 24,
      document: 'https://element.eleme.cn/#/zh-CN/component/input',
      // 正则校验规则
      regList: []
    },
    // 其余的为可直接写在组件标签上的属性
    placeholder: '请输入',
    style: { width: '100%' },
    clearable: true,
    'prefix-icon': '',
    'suffix-icon': '',
    prepend: '',
    append: '',
    maxlength: null,
    'show-word-limit': undefined,
    readonly: false,
    disabled: false,
    dialogIsShow: false,
    dataSource: '',
    fieldName: '',
    dictName: '',
    displayLabel: true,
    dataType: 'datasource'
  },
]

// 布局型组件 【左面板】
export const layoutComponents = [
  // {
  //   __config__: {
  //     layout: 'rowFormItem',
  //     tagIcon: 'row',
  //     label: '行容器',
  //     layoutTree: true,
  //     document: 'https://element.eleme.cn/#/zh-CN/component/layout#row-attributes'
  //   },
  //   type: 'default',
  //   justify: 'start',
  //   align: 'top'
  // },
  // {
  //   __config__: {
  //     label: '按钮',
  //     showLabel: true,
  //     changeTag: true,
  //     labelWidth: null,
  //     tag: 'el-button',
  //     tagIcon: 'button',
  //     span: 24,
  //     layout: 'colFormItem',
  //     document: 'https://element.eleme.cn/#/zh-CN/component/button'
  //   },
  //   __slot__: {
  //     default: '主要按钮'
  //   },
  //   type: 'primary',
  //   icon: 'el-icon-search',
  //   round: false,
  //   size: 'medium',
  //   plain: false,
  //   circle: false,
  //   disabled: false
  // },
  // {
  //   __config__: {
  //     layout: 'colFormItem',
  //     tagIcon: 'table',
  //     tag: 'el-table',
  //     document: 'https://element.eleme.cn/#/zh-CN/component/table',
  //     span: 24,
  //     formId: 101,
  //     renderKey: 1595761764203,
  //     componentName: 'row101',
  //     showLabel: true,
  //     changeTag: true,
  //     labelWidth: null,
  //     label: '表格[开发中]',
  //     dataType: 'dynamic',
  //     method: 'get',
  //     dataPath: 'list',
  //     dataConsumer: 'data',
  //     url: 'https://www.fastmock.site/mock/f8d7a54fb1e60561e2f720d5a810009d/fg/tableData',
  //     children: [{
  //       __config__: {
  //         layout: 'raw',
  //         tag: 'el-table-column',
  //         renderKey: 15957617660153
  //       },
  //       prop: 'date',
  //       label: '日期'
  //     }, {
  //       __config__: {
  //         layout: 'raw',
  //         tag: 'el-table-column',
  //         renderKey: 15957617660152
  //       },
  //       prop: 'address',
  //       label: '地址'
  //     }, {
  //       __config__: {
  //         layout: 'raw',
  //         tag: 'el-table-column',
  //         renderKey: 15957617660151
  //       },
  //       prop: 'name',
  //       label: '名称'
  //     }, {
  //       __config__: {
  //         layout: 'raw',
  //         tag: 'el-table-column',
  //         renderKey: 1595774496335,
  //         children: [
  //           {
  //             __config__: {
  //               label: '按钮',
  //               tag: 'el-button',
  //               tagIcon: 'button',
  //               layout: 'raw',
  //               renderKey: 1595779809901
  //             },
  //             __slot__: {
  //               default: '主要按钮'
  //             },
  //             type: 'primary',
  //             icon: 'el-icon-search',
  //             round: false,
  //             size: 'medium'
  //           }
  //         ]
  //       },
  //       label: '操作'
  //     }]
  //   },
  //   data: [],
  //   directives: [{
  //     name: 'loading',
  //     value: true
  //   }],
  //   border: true,
  //   type: 'default',
  //   justify: 'start',
  //   align: 'top'
  // },
  {
    __config__: {
      label: '子表单',
      layout: 'rowFormItem',
      tagIcon: 'table',
      tag: 'Subform',
      document: 'https://element.eleme.cn/#/zh-CN/component/table',
      span: 24,
      formId: 101,
      renderKey: 1595761764203,
      componentName: undefined,
      showLabel: false,
      changeTag: true,
      labelWidth: null,
      columnWidth: '',
      titleRap: false,
      showLabel: true,
      defaultValue: '',
      sortField: '',
      sortType: '',
      showNum: false,
      numLabel: '',
      numWidth: '',
      isPage: false,
      curPage: 1,
      pageSize: 10,
      showCustomColumn: false,
      leftCol: 0,
      rightCol: 0,
      customColumn: '',
      editType: 'table',
      componentBorder: false,
      formBorder: false,
      // method: 'get',
      // dataPath: 'list',
      // dataConsumer: 'data',
      regList: [],
      children: [
        {
          __config__: {
            layout: 'rowFormItem',
            tagIcon: 'row',
            label: '行容器',
            layoutTree: false,
            document: 'https://element.eleme.cn/#/zh-CN/component/layout#row-attributes'
          },
          type: 'default',
          justify: 'start',
          align: 'top',
          componentName: 'el-row',
          itemBtns: false,
        },
      ]
    },
    options: [
      {
        label: '添加',
        text: '添加',
        method: 'insertData',
        position: 'table',
        type: 'primary',
        command: "insert"
      },
      {
        label: '删除',
        text: '删除',
        method: 'delData',
        position: 'table',
        type: 'danger',
        iconType: 'el-icon-delete',
        command: "del"
      },
    ],
    type: undefined,
    tableData: []
  },
  {
    __config__: {
      label: '分割线',
      changeTag: true,
      tag: 'TitleLine',
      tagIcon: 'split',
      span: 24,
      layout: 'colFormItem',
      document: 'https://element.eleme.io/#/zh-CN/component/divider'
    },
    content: '分割线',
    type: 'divider',
    'content-position': 'left',
    styleConfig: { marginTop: 24, marginBottom: 24, color: '#444444' }
  },
  //自定义标题
  {
    __config__: {
      label: '标题',
      changeTag: true,
      tag: 'TitleLine',
      tagIcon: 'title',
      span: 24,
      layout: 'colFormItem',
      document: 'https://element.eleme.io/#/zh-CN/component/divider'
    },
    content: '标题',
    type: 'title',
    styleConfig: { color: '#444444', fontSize: 16 },
    'content-position': 'left'
  },
  {
    __config__: {
      label: '选项卡',
      tag: "el-tabs",
      tagIcon: "tabs",
      span: 24,
      showLabel: false,
      changeTag: false,
      componentName: "el-tabs",
      layout: "rowFormItem",
      layoutTree: false,
      document: "https://element.eleme.cn/#/zh-CN/component/tabs",
      children: [{
        __config__: {
          layout: 'rowFormItem',
          tagIcon: 'row',
          label: '行容器',
          layoutTree: false,
          document: 'https://element.eleme.cn/#/zh-CN/component/layout#row-attributes',
        },
        type: 'default',
        justify: 'start',
        align: 'top',
        componentName: 'el-row',
        itemBtns: false
      }, {
        __config__: {
          layout: 'rowFormItem',
          tagIcon: 'row',
          label: '行容器',
          layoutTree: false,
          document: 'https://element.eleme.cn/#/zh-CN/component/layout#row-attributes'
        },
        type: 'default',
        justify: 'start',
        align: 'top',
        componentName: 'el-row',
        itemBtns: false
      }, {
        __config__: {
          layout: 'rowFormItem',
          tagIcon: 'row',
          label: '行容器',
          layoutTree: false,
          document: 'https://element.eleme.cn/#/zh-CN/component/layout#row-attributes'
        },
        type: 'default',
        justify: 'start',
        align: 'top',
        componentName: 'el-row',
        itemBtns: false
      }],
    },
    value: 'tab1',
    type: "",
    "tab-position": "top",
    __slot__: {
      options: [{
        label: '选项卡1',
        name: 'tab1',
        content: 'this.children'
      }, {
        label: '选项卡2',
        name: 'tab2',
        content: 'this.children'
      }, {
        label: '选项卡3',
        name: 'tab3',
        content: 'this.children'
      }]
    },
  },
  {
    __config__: {
      label: '步骤条',
      showLabel: false,
      changeTag: false,
      labelWidth: undefined,
      tag: 'Steps',
      tagIcon: 'step',
      defaultValue: null,
      up: '上一步',
      down: '下一步',
      finish: '关闭',
      span: 20,
      componentName: "steps",
      layout: 'colFormItem',
      //  regList: [],
      document: 'https://element.eleme.cn/#/zh-CN/component/steps',
      children: [
        {
          __config__: {
            layout: 'rowFormItem',
            tagIcon: 'row',
            label: '行容器',
            layoutTree: false,
            document: 'https://element.eleme.cn/#/zh-CN/component/layout#row-attributes',
          },
          type: 'default',
          justify: 'start',
          align: 'top',
          componentName: 'el-row',
          itemBtns: false,
        },
        {
          __config__: {
            layout: 'rowFormItem',
            tagIcon: 'row',
            label: '行容器',
            layoutTree: false,
            document: 'https://element.eleme.cn/#/zh-CN/component/layout#row-attributes',
          },
          type: 'default',
          justify: 'start',
          align: 'top',
          componentName: 'el-row',
          itemBtns: false
        },
      ]
    },
    __vModel__: undefined,
    // __slot__: {
    //   options: [{
    //     label: '步骤一',
    //     value: ''
    //   }, {
    //     label: '步骤二',
    //     value: ''
    //   }]
    // },
    options: [{
      label: '步骤一',
      value: ''
    }, {
      label: '步骤二',
      value: ''
    }],
    // placeholder: '请输入',
    // height: 300, // 编辑器高度
    type: '',
    branding: undefined // 隐藏右下角品牌烙印
  },
  {
    __config__: {
      label: '折叠面板',
      tag: "el-collapse",
      tagIcon: "tabs",
      span: 24,
      showLabel: false,
      changeTag: false,
      componentName: "el-collapse",
      layout: "rowFormItem",
      layoutTree: false,
      document: "https://element.eleme.cn/#/zh-CN/component/tabs",
      children: [{
        __config__: {
          layout: 'rowFormItem',
          tagIcon: 'row',
          label: '行容器',
          layoutTree: false,
          document: 'https://element.eleme.cn/#/zh-CN/component/layout#row-attributes',
        },
        type: 'default',
        justify: 'start',
        align: 'top',
        componentName: 'el-row',
        itemBtns: false
      }, {
        __config__: {
          layout: 'rowFormItem',
          tagIcon: 'row',
          label: '行容器',
          layoutTree: false,
          document: 'https://element.eleme.cn/#/zh-CN/component/layout#row-attributes'
        },
        type: 'default',
        justify: 'start',
        align: 'top',
        componentName: 'el-row',
        itemBtns: false
      }, {
        __config__: {
          layout: 'rowFormItem',
          tagIcon: 'row',
          label: '行容器',
          layoutTree: false,
          document: 'https://element.eleme.cn/#/zh-CN/component/layout#row-attributes'
        },
        type: 'default',
        justify: 'start',
        align: 'top',
        componentName: 'el-row',
        itemBtns: false
      }],
    },
    value: 'collapse1',
    type: "",
    // "collapse-position": "top",
    __slot__: {
      options: [{
        title: '折叠面板1',
        name: 'collapse1',
        content: 'this.children'
      }, {
        title: '折叠面板2',
        name: 'collapse2',
        content: 'this.children'
      }, {
        title: '折叠面板3',
        name: 'collapse3',
        content: 'this.children'
      }]
    },
  },
]
export const organizationComponents = [
  {
    // 组件的自定义配置
    __config__: {
      label: '用户',
      labelWidth: null,
      labelPosition: 'top',
      showLabel: true,
      changeTag: true,
      tag: 'UsersSelector',
      tagIcon: 'user',
      defaultValue: undefined,
      required: true,
      layout: 'colFormItem',
      span: 24,
      manyCheck: true,
      document: 'https://element.eleme.cn/#/zh-CN/component/input',
      // 正则校验规则
      regList: []
    },
    // 组件的插槽属性
    __slot__: {
      prepend: undefined,
      append: undefined
    },
    // 其余的为可直接写在组件标签上的属性
    placeholder: '请选择',
    style: { width: '100%' },
    clearable: true,
    'prefix-icon': undefined,
    'suffix-icon': undefined,
    maxlength: undefined,
    'show-word-limit': undefined,
    disabled: false,
    dialogIsShow: false,
    multiple: false,
    defaultValueKey: 'stickValue',
    defaultValueCheck: true,
  },
  {
    // 组件的自定义配置
    __config__: {
      label: '部门',
      labelWidth: null,
      labelPosition: 'top',
      showLabel: true,
      changeTag: true,
      tag: 'DepartmentSelection',
      tagIcon: 'depart',
      defaultValue: undefined,
      required: true,
      layout: 'colFormItem',
      span: 24,
      manyCheck: true,
      document: 'https://element.eleme.cn/#/zh-CN/component/input',
      // 正则校验规则
      regList: []
    },
    // 组件的插槽属性
    __slot__: {
      prepend: undefined,
      append: undefined
    },
    // 其余的为可直接写在组件标签上的属性
    placeholder: '请选择',
    style: { width: '100%' },
    clearable: true,
    'prefix-icon': undefined,
    'suffix-icon': undefined,
    maxlength: undefined,
    'show-word-limit': undefined,
    disabled: false,
    multiple: false,
    dialogIsShow: false,
    defaultValueKey: 'stickValue',
    defaultValueCheck: true,
  },
  {
    // 组件的自定义配置
    __config__: {
      label: '岗位',
      labelWidth: null,
      labelPosition: 'top',
      showLabel: true,
      changeTag: true,
      tag: 'PostSelection',
      tagIcon: 'post',
      defaultValue: undefined,
      required: true,
      manyCheck: true,
      layout: 'colFormItem',
      span: 24,
      document: 'https://element.eleme.cn/#/zh-CN/component/select',
      // 正则校验规则
      regList: []
    },
    // 组件的插槽属性
    __slot__: {
      prepend: undefined,
      append: undefined
    },
    // 其余的为可直接写在组件标签上的属性
    placeholder: '请选择',
    style: { width: '100%' },
    clearable: true,
    'prefix-icon': undefined,
    'suffix-icon': undefined,
    maxlength: undefined,
    'show-word-limit': undefined,
    disabled: false,
    manyCheck: true,
    multiple: false,
    dialogIsShow: false,
    defaultValueCheck: true,
    defaultValueKey: 'stickValue',
  },
]
